﻿using MediatR;
using MES.Server.API.Dto.ProcessProceduresDTO;
using ReturnValue;
using System.ComponentModel.DataAnnotations;

namespace MES.Server.API.Application.Command.Process_Procedures.ProcessFlow
{

    public class GetProcessFlowCommand : IRequest<ApiPaging<ProcessFlowDTO>>
    {
        /// <summary>
        /// 工艺流程编号
        /// </summary>
        public string? FlowCode { get; set; }
        /// <summary>
        /// 工艺流程名称
        /// </summary>
        public string? FlowName { get; set; }

        /// <summary>
        /// 负责人
        /// </summary>
        public long? PersonId { get; set; }
        /// <summary>
        /// 所属部门
        /// </summary>
        public long? DepartmentId { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public bool? IsActive { get; set; }

        /// <summary>
        /// 页码索引，从第1页开始，默认值为1
        /// </summary>
        public int PageIndex { get; set; } = 1;

        /// <summary>
        /// 每页显示记录数，默认值为10
        /// </summary>
        public int PageSize { get; set; } = 10;
    }
}
